package cn.wmw.xyy.feign;

import cn.wmw.result.JsonResult;
import cn.wmw.xyy.domain.Login;
import cn.wmw.xyy.fallback.LoginFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",path = "login",contextId = "loginFeignClient",fallbackFactory = LoginFeignClientFallbackFactory.class)
public interface LoginFeignClient {
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult saveOrUpdate(@RequestBody Login login);
}
